package com.aluka.nirvana.framework.security.principal;

import cn.hutool.json.JSONUtil;
import lombok.Data;

import java.util.Collection;
import java.util.Map;

/**
 * 身份认证成功后响应模型
 * @author gongli
 * @version 1.0
 * @since 12:52 2020/9/25
 */
@Data
public class AuthenticationSuccessResponse {

    private Integer status;
    private String message;
    private String token;
    private Collection<?> scope;
    private Long expire;

    private Map<String, Object> customField;

    @Override
    public String toString(){
        return JSONUtil.toJsonStr(this);
    }
}
